﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchControl.ascx.cs"
    Inherits="Controls_SearchControl" %>
<%@ Register Src="../Controls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>

<table width="100%" style="border: solid 2px #3e7a21; padding: 10px 10px 10px 10px;">
    <tr>
        <td>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            Country:
        </td>
    </tr>
    <tr>
        <td>
            <asp:DropDownList ID="ddlCountry" runat="server" Width="230px" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged"
                AutoPostBack="True">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="rfvCountry" runat="server" ControlToValidate="ddlCountry" Display="None" InitialValue="0" ErrorMessage="Select Country"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            Region/City:
        </td>
    </tr>
    <tr>
        <td>
            <asp:DropDownList ID="ddlRegion" runat="server" Width="230px" AutoPostBack="True"
                OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="rfvRegion" runat="server" ControlToValidate="ddlRegion" Display="None"  InitialValue="0" ErrorMessage="Select Region"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            Location/Area:
        </td>
    </tr>
    <tr>
        <td>
            <asp:DropDownList ID="ddlLocation" runat="server" Width="230px" AutoPostBack="True"
                OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged">
            
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="rfvLocation" runat="server" ControlToValidate="ddlLocation" Display="None"  InitialValue="0" ErrorMessage="Select Location"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            Pick Up:
            <asp:CustomValidator ID="cvPickUpDate" runat="server" OnServerValidate="cvPickUpDate_ServerValidate"></asp:CustomValidator>
        </td>
    </tr>
    <tr>
        <td>
            <uc1:DatePicker ID="dtpStartDate" runat="server" />
            <asp:DropDownList ID="ddlStartTime" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
    <tr><td>
        Drop Off: </td>
    </tr>
    <tr>
        <td>
            <uc1:DatePicker ID="dtpEndDate" runat="server" />
            <asp:DropDownList ID="ddlEndTime" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblNumberOfDays" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td>
            <asp:ImageButton ID="btnGetQuote" runat="server" ImageUrl="../Images/GetQuote_Green.png"
                OnClick="btnGetQuote_Click" />
        </td>
    </tr>
</table>
